public class Main{
	public static void main(String[] args){
		Point3D p1=new Point3D(3,2,3);
		Point3D p2=new Point3D();

		Point2D p3=new Point2D(7,8);


		System.out.printf("p1:(%d,%d,%d)\n",p1.getX(),p1.getY(),p1.getZ());

		System.out.printf("p2:(%d,%d,%d)\n",p2.getX(),p2.getY(),p2.getZ());
		System.out.printf("p3:(%d,%d)\n\n",p3.getX(),p3.getY());

		System.out.println(p1.getTatal());
		System.out.println(p2.getTatal());
		System.out.println(p3.getTatal());



		System.out.printf("p1:(%d,%d,%d)\n",p1.getCopy().getX(),p1.getCopy().getY(),p1.getCopy().getZ());

		System.out.printf("p2:(%d,%d,%d)\n",p2.getCopy().getX(),p2.getCopy().getY(),p2.getCopy().getZ());
	}
}